//
//  TopicWaterFallLayout.h
//  miaopai
//
//  Created by duyifang on 15/11/14.
//  Copyright © 2015年 Crow Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TopicWaterFallLayout <UICollectionViewDelegateFlowLayout>

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface TopicWaterFallLayout : UICollectionViewLayout

@property(nonatomic, assign) id<TopicWaterFallLayout>delegate;

@property(nonatomic, retain) NSMutableArray *array;

@property(nonatomic, assign) CGFloat maxHeight;

@end
